.flex {
  display: flex;
}

.flex-direction {
  flex-direction: column;
}

.flex-sub {
  flex: 1
}

.page-content {
  padding: 1rem 1rem 1.2rem 1rem;
  height: 100%;

  .card {
    height: 100%;
    overflow: auto;
  }

  .row-add-btn {
    margin-top: 5px;
  }

  /*列表查询条件收缩样式-----------------------------------------------------------------------------------------------------*/
  .div-query {
    background: none;
    border-radius: 2px;
    border: 1px solid #e3e3e3;
    padding: 0 0px;
    margin-bottom: 1rem; // height: 300px;
  }

  .collapse {
    background: none;
    border: 0;
    border-radius: 4px;
    margin-bottom: 6px;
  }

  .collapse-header {
    position: relative;
    padding: 3px 16px 3px 40px;
    color: rgba(0, 0, 0, 0.85);
    line-height: 22px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 1px solid #e8e8e8;
    background-color: rgb(250, 250, 250);
  }

  .collapse-header-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
  }

  .collapse-content {
    color: rgba(0, 0, 0, 0.65);
    padding: 0.5rem 1rem 0.1rem 1rem;
  }

  /*操作按钮样式-----------------------------------------------------------------------------------------------------*/
  .btn-refresh {
    float: right;
    // margin-right: 0px;
    // margin-bottom: 1px;
    margin: auto;
  }

  .btn-operation {
    height: 28px;
    padding: 0px 8px;
    color: #fff;
    font-size: 13px;
    transition: all 1s;
    margin-right: 5px;
  }

  .btn-detail {
    background-color: #67c23a;
    border-color: #67c23a;
  }

  .btn-detail:hover {
    background-color: #67c23a;
    border-color: #67c23a;
  }

  .btn-edit {
    background-color: #409eff;
    border-color: #409eff;
  }

  .btn-edit:hover {
    background: #66b1ff;
    border-color: #66b1ff;
  }

  .btn-delete {
    background-color: #f56c6c;
    border-color: #f56c6c;
  }

  .btn-delete:hover {
    background-color: #f78989;
    border-color: #f78989;
  }

  .btn-reset {
    background-color: #ff9007;
    border-color: #ff9007;
  }

  .btn-reset:hover {
    background-color: #f39d32;
    border-color: #f39d32;
  }

  .btn-add {
    background: transparent;
    padding: 6px 15px !important;
    color: #f7a20d;
    border: 1px solid #f7a20d;
    transition: all 0.5s;
    margin-left: 20px;
  }

  .btn-add:hover {
    color: #f9c66c;
    border: 1px solid #f9c66c;
  }


  .i-detail {
    font-size: 15px;
    cursor: pointer;
    // color: #01a2e4;
    color: #409eff;
  }

  /*自定义卡片样式-----------------------------------------------------------------------------------------------------*/
  .card {
    border-radius: 6px;
    padding: 5px;
    margin-bottom: 12px;
  }

  .card::-webkit-scrollbar {
    width: 9px;
    height: 9px;
  }

  .card::-webkit-scrollbar-thumb {
    background: #d3dce6;
    border-radius: 20px;
  }

  /*自定义编辑、详情内容组头部样式-----------------------------------------------------------------------------------------------------*/
  .title {
    color: #383838;
    font-size: 16px;
    border-bottom: 1px solid #dedede;
    padding: 3px 5px;
    border-radius: 5px;
    margin-top: 3px;
  }

  .alert-div {
    color: rgba(0, 0, 0, 0.85);
    font-size: 14px;
    border-radius: 2px;
    background-color: rgb(230, 247, 255);
    border: 1px solid rgb(145, 213, 255);
    display: inline;
    padding: 6px 30px 6px 15px;
    margin-right: 10px;
    margin-bottom: 5px;
  }

  .a-text {
    color: #409eff;
    transition: .1s;
  }

  .a-text:hover {
    color: #66b1ff;
  }

  // element-ui样式
  /*button样式-----------------------------------------------------------------------------------------------------*/
  .el-button--mini {
    padding: 7px 15px;
  }

  .el-button--small {
    padding: 8px 15px;
    font-size: 14px;
    height: 32px;
    // color: rgba(40, 40, 40, 0.8);
  }

  .el-button--small.is-circle {
    padding: 9px;
  }

  .el-button--medium {
    padding: 9px 20px;
    font-size: 14px;
    border-radius: 4px;
  }

  .el-button [class*="el-icon-"]+span {
    margin-left: 0px;
  }

  /*container样式-----------------------------------------------------------------------------------------------------*/
  .el-main {
    display: block;
    flex: 1;
    flex-basis: auto;
    overflow: auto;
    box-sizing: border-box;
    padding: 0px 12px;
  }

  .el-footer {
    box-sizing: border-box;
    flex-shrink: 0;
    border-top: 1px solid #e8e8e8;
    width: calc(100% + 24px);
    margin-top: 5px;
    margin-left: -12px;
    padding: 12px 0px 0px 0px;
    height: 50px !important;
    text-align: center;
  }

  /*card样式-----------------------------------------------------------------------------------------------------*/
  .el-card {
    border-radius: 2px;
    border: 1px solid #e6ebf5;
    background-color: #fff;
    overflow: hidden;
    color: #303133;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    // margin-top: 0.8rem;
    // margin: 8px 0 12px 0px;
  }

  .el-card__body {
    padding: 12px;
  }

  .el-card__header {
    padding: 8px 16px;
  }

  /*dialog样式-----------------------------------------------------------------------------------------------------*/
  .el-dialog {
    width: 70%;
    box-shadow: 0 0 25px #5592f3;
  }

  .el-dialog__header {
    padding: 8px 16px;
    color: rgba(0, 0, 0, 0.65);
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 4px 4px 0 0;
  }

  .el-dialog__title {
    margin: 0;
    color: #4f556e; // #4f556e; rgba(0, 0, 0, .85)
    font-weight: 500;
    font-size: 15px;
    line-height: 22px;
    word-wrap: break-word;
  }

  .el-dialog__headerbtn {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 0;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 18px;
  }

  .el-dialog__body {
    word-break: break-all;
    padding: 0 12px 12px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
  }

  /*table样式-----------------------------------------------------------------------------------------------------*/
  .el-table th.is-leaf:first-child,
  .el-table td:first-child {
    border-left: 0px solid #ebeef5;
  }

  .el-table th.is-leaf,
  .el-table td {
    border-top: 0px solid #ebeef5;
  }

  .el-table--group,
  .el-table--border {
    border: 1px solid #ebeef5;
  }

  .el-table--border {
    border-right: none;
    border-bottom: none;
  }

  .el-table th {
    word-break: break-word; // color: rgba(0, 0, 0, .5);
    color: #909399;
    background-color: #fafafa;
  }

  .el-table td,
  .el-table th.is-leaf {
    border-bottom: 1px solid #ebeef5;
  }

  .el-table--border td,
  .el-table--border th,
  .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {
    border-right: 1px solid #ebeef5; // border-left: 1px solid #ebeef5;
  }

  .el-table--small th,
  .el-table--small td {
    padding: 0px 0;
  }

  // .el-table--mini th, .el-table--mini td {
  //     padding: 5px 0;
  // }
  .el-table--mini,
  .el-table--small,
  .el-table__expand-icon {
    font-size: 14px;
  }

  .el-table th.is-leaf {
    border-top: 0px solid transparent; // border-bottom-width: 2px
  }

  .el-table th.is-leaf:last-child,
  .el-table td:last-child {
    border-left: 1px solid #ebeef5;
  }

  .el-table__empty-block {
    border-left: 0px solid #ebeef5;
    border-top: 0px solid #ebeef5;
    min-height: 40px;
    height: 40px !important;
  }

  .el-pagination {
    margin-top: -16px;
    float: right;
    padding-bottom: 16px;
  }

  /*form样式-----------------------------------------------------------------------------------------------------*/
  .el-form-item--small.el-form-item {
    margin: 6px 0;
  }

  .el-form-item__label {
    text-align: right;
    vertical-align: middle;
    float: left;
    font-size: 14px;
    line-height: 32px;
    padding: 0 4px 0 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #000000d9;
    font-weight: normal;
  }

  .el-form-item__label::after {
    content: ":";
    position: relative;
    top: -0.5px;
    margin: 0 8px 0 2px;
  }

  .el-form-item--small .el-form-item__error {
    padding-top: 2px;
    margin-bottom: -6px;
    position: relative;
  }

  /*input-----------------------------------------------------------------------------------------------------*/
  .el-input--small {
    font-size: 0.9rem !important;
  }

  .el-input-number--small {
    line-height: 30px !important;
    width: 100%;
  }

  /*select样式-----------------------------------------------------------------------------------------------------*/
  .el-select {
    width: 100%;
  }

  /*date样式-----------------------------------------------------------------------------------------------------*/
  .el-date-editor--datetimerange.el-input,
  .el-date-editor--datetimerange.el-input__inner {
    width: 100%;
  }

  .el-date-editor.el-input,
  .el-date-editor.el-input__inner {
    width: 100%;
  }

  /*treeselect样式-----------------------------------------------------------------------------------------------------*/
  .vue-treeselect__control {
    padding-left: 5px;
    padding-right: 5px;
    display: table;
    table-layout: fixed;
    width: 100%;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    transition-duration: 200ms;
    transition-property: border-color, box-shadow, width, height, background-color, opacity;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  .vue-treeselect--open.vue-treeselect--open-below .vue-treeselect__control {
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
  }

  .vue-treeselect__placeholder,
  .vue-treeselect__single-value {
    line-height: 30px !important;
    height: 30px !important;
    padding-left: 10px !important;
  }

  .vue-treeselect__single-value {
    color: #606266;
  }

  .vue-treeselect__menu {
    cursor: default;
    padding-top: 5px;
    padding-bottom: 20px;
    display: block;
    position: absolute;
    overflow-x: hidden;
    overflow-y: auto;
    width: auto;
    border: 0px solid #cfcfcf;
    background: #fff;
    line-height: 28px;
    -webkit-overflow-scrolling: touch; // box-shadow: 0 3px 6px -4px rgb(0 0 0 / 12%), 0 6px 16px 0 rgb(0 0 0 / 8%), 0 9px 28px 8px rgb(0 0 0 / 5%);
    border-radius: 2px;
    margin-top: 4px;
    margin-bottom: 5px;
    max-height: 400px !important;
    box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px 0 #00000014, 0 9px 28px 8px #0000000d;
  }

  .vue-treeselect__option-arrow {
    font-weight: 700;
    color: rgba(0, 0, 0, 0.65);
  }

  .vue-treeselect__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: table-cell;
    padding-left: 5px;
    max-width: 100%;
    vertical-align: middle;
    cursor: inherit;
    font-size: 14px;
    font-weight: normal;
    color: #606266;
  }

  .vue-treeselect--has-value .vue-treeselect__input {
    line-height: inherit;
    vertical-align: top;
    height: 32px;
  }

  .vue-treeselect--focused.vue-treeselect--searchable .vue-treeselect__single-value {
    color: #bdbdbd !important;
  }

  .el-tree-node__content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 26px;
    cursor: pointer;
    margin: 2px 0;
  }
}

/*form样式-----------------------------------------------------------------------------------------------------*/

// .custom-form {
//     .el-form-item {
//         margin: 6px 0;
//     }
//     .el-form-item__label {
//         text-align: right;
//         vertical-align: middle;
//         float: left;
//         font-size: 14px;
//         line-height: 32px;
//         padding: 0 4px 0 0;
//         -webkit-box-sizing: border-box;
//         box-sizing: border-box;
//         color: #000000d9;
//         font-weight: normal;
//     }
//     .el-form-item__label::after {
//         content: ':';
//         position: relative;
//         top: -.5px;
//         margin: 0 8px 0 2px;
//     }
//     .el-form-item--small .el-form-item__error {
//         padding-top: 2px;
//         margin-bottom: -6px;
//         position: relative;
//     }
// }
// /*input-----------------------------------------------------------------------------------------------------*/
// .custom-input {
//     .el-input--small {
//         font-size: 0.9rem !important;
//     }
//     .el-input-number--small {
//         line-height: 30px !important;
//         width: 100%;
//     }
// }
// /*select样式-----------------------------------------------------------------------------------------------------*/
// .custom-select{
//   .el-select {
//     width: 100%;
//   }
// }
//  /*date样式-----------------------------------------------------------------------------------------------------*/
//  .custom-date{
//  }
//  .el-date-editor--datetimerange.el-input,
//  .el-date-editor--datetimerange.el-input__inner {
//      width: 100%;
//  }
//  .el-date-editor.el-input,
//  .el-date-editor.el-input__inner {
//      width: 100%;
//  }
